<!-- 联系人 -->
<template>
  <div class="group-box">
    <div
      v-for="item in friendList"
      :key="item.id"
      class="group-item"
      @click="$emit('selectedChange', item)"
      :class="{ active: currentChat === item.id }"
    >
      <chatAvatar :content="item.avatarList"></chatAvatar>
      <span class="group-name">{{ item.name }}</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "contactPage",
  components: {},

  computed: {
    friendList() {
      return this.$store.state.friendList
    }
  },
  data() {
    return {}
  },

  methods: {}
}
</script>
<style lang="less" scoped></style>
